package com.tech.tool.service.impl;

import com.tech.tool.repository.DatabaseManageRepository;
import com.tech.tool.enums.DeleteEnum;
import com.tech.tool.service.DatabaseManageService;
import com.tech.tool.dataobject.DatabaseManage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DatabaseManageServiceImpl implements DatabaseManageService {

    @Autowired
    private DatabaseManageRepository repository;

    @Override
    public List<DatabaseManage> findByDatabaseDeleteAndBuIdOrderByCreateTimeDesc(Integer BUId) {
        List<DatabaseManage> databaseManageList = repository.findByDatabaseDeleteAndBuIdOrderByCreateTimeDesc(
                        DeleteEnum.EXIST.getCode(), BUId);
        return databaseManageList;
    }

    @Override
    public DatabaseManage save(DatabaseManage databaseManage) {
        return null;
    }

    @Override
    public DatabaseManage delete() {
        return null;
    }
}
